
import './App.css';

import Sign from "./Sign";
import MainPage from "./MainPage";
import CheckSign from "./CheckSign";
import Entrust from "./Entrust";
import CheckEntrust from "./CheckEntrust";
import CheckLogin from "./ CheckLogin";
import Register from "./Register";
import DailyPlan from "./DailyPlan";
import CheckTimeEntrusted from  './CheckTimeEntrusted';
import TimeEntrusted from './TimeEntrusted'


import {Route, BrowserRouter as Router,Switch} from "react-router-dom";
import {ErrorBlock} from 'antd-mobile'



function App() {
  return (
    <div className="App">
        {/*<Register />*/}
        {/*<Sign />*/}
        {/*<MainPage />*/}
        {/*<CheckSign />*/}

        <Router basename={process.env.PUBLIC_URL}>
            <Switch>
            <Route path='/checklogin' component={CheckLogin}></Route>
            <Route path='/mainpage' component={MainPage}></Route>
            <Route path='/sign'  component={Sign}></Route>
            <Route path='/checksign' component={CheckSign}></Route>
            <Route path='/entrust' component={Entrust}></Route>
            <Route path='/checkentrust' component={CheckEntrust}></Route>
                <Route path='/register' component={Register}></Route>
                <Route path='/checktimeentrusted' component={CheckTimeEntrusted}></Route>
                <Route path='/dailyplan' component={DailyPlan}></Route>
                <Route path='/timeentrusted' component={TimeEntrusted}></Route>
            <Route render={()=><ErrorBlock fullPage status='empty' description={
                <span>
                    404 NOT FOUNT
          </span>
            } />}></Route>
            </Switch>
            </Router>

    </div>
  );
}

export default App;
